import { type DictType, useDictOptions } from './useDictCache';

export const useSelectDict = (type: DictType) => {
  const options = ref<any[]>([]);
  onMounted(async () => {
    options.value = await useDictOptions(type);
  });

  return options;
};
